/*
 * @Description: 支付渠道接口
 * @Date: 2022-12-07 21:57:54
 * @Author: lizhiqiang
 */
import { PayChannel } from "@/types/api"
import { get, post } from "../utils/request"
/**
 * 获取支付渠道列表
 * @param params 
 * @returns 
 */
export const GetPaymentChannelList = (params:PayChannel)=>{
    return post("/cdwl-merchant/inner/paychannel/list",params)
}
/**
 * 获取支付渠道详情
 * @param id 
 * @returns 
 */
export const GetPaymentChannelInfo=(id:string)=>{
    return get(`/cdwl-merchant/inner/paychannel/info/${id}`)
}
/**
 * 保存支付渠道
 * @param params 
 * @returns 
 */
export const SavePaymentChannel =(params:PayChannel)=>{
    return post("/cdwl-merchant/inner/paychannel/save",params)
}
/**
 * 编辑支付渠道
 * @param params 
 * @returns 
 */
export const UpdatePaymentChannel = (params:PayChannel)=>{
    return post("/cdwl-merchant/inner/paychannel/update",params)
}
/**
 * 删除支付渠道
 * @param params 
 * @returns 
 */
export const DeletePaymentChannel = (params:Array<string>)=>{
    return post("/cdwl-merchant/inner/paychannel/deleteBatch",params)
}